Also, since we only write to this FD, we mau as well use creat(2)
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %05%9B%EF%F4%12%9B%C0%FCD%03%2A%95%A8ull%A8%9Fk%21
}
/* write a copy of the tree to a file */
- if ((dtb_fd = open(DTB_FILE , O_CREAT|O_RDWR)) == -1) {
+ if ((dtb_fd = creat(DTB_FILE, S_IRUSR | S_IWUSR)) == -1) {
PERROR("%s: failed to open file %s", __func__, DTB_FILE);
goto error;
}